<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<s:form action="add_person" method="post" namespace="/system">
	<table cellspacing="0" cellpadding="0" width="500" align="center"
		style="table-layout: fixed; border-top: 0 ;margin-top: 50px">
		<tr>
			<th colspan="2">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="15" height="30">
							<img src="../system/images/tab/tab_03.gif" width="15" height="30" />
						</td>
						<td background="../system/images/tab/tab_05.gif">
							<img src="../system/images/tab/311.gif" height="16" />
							<span class="STYLE4">用户注册</span>
						</td>
						<td width="14">
							<img src="../system/images/tab/tab_07.gif" width="14" height="30" />
						</td>
					</tr>
				</table>
			</th>
		</tr>
		<tr>
			<td colspan="2">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="9" background="../system/images/tab/tab_12.gif">
							&nbsp;
						</td>
						<td>
							<table width="99%" border="0" align="center" cellpadding="0"
								cellspacing="1">
								<tr align="center">
									<s:textfield name="person.account" label="帐号"></s:textfield>
									<s:hidden name="person.deleted" value="false"></s:hidden>
									<s:password name="person.password" label="密码"></s:password>
									<s:password name="password" label="确认密码"></s:password>
									<s:textfield name="person.name" label="姓名" value="admin"></s:textfield>
									<s:select name="dept.id" listKey="id" listValue="deptName"
										list="deptList" label="部门">
									</s:select>
									<s:select name="position.id" listKey="id" listValue="position"
										list="positionList" label="职位">
									</s:select>
									<s:if test="#session.personInfo.group=='admin'">
										<s:select name="group.id" list="groupList" listKey="id"
											listValue="name" label="组别">
										</s:select>
									</s:if>
									<s:radio name="person.sex" list="#{'male':'男','female':'女'}"
										label="性别">
									</s:radio>
									<s:textfield name="person.email" label="电子邮件"></s:textfield>
									<s:textfield name="person.birthday" label="生日"></s:textfield>
								<tr>
									<td>
										<s:submit cssClass="btn" value="注册" theme="simple"></s:submit>

									</td>
									<td>
										<s:reset cssClass="btn" value="取消" theme="simple"></s:reset>
									</td>
								</tr>
							</table>
						</td>
						<td width="9" background="../system/images/tab/tab_16.gif">
							&nbsp;
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="15" height="29">
							<img src="../system/images/tab/tab_20.gif" width="15" height="29" />
						</td>
						<td background="../system/images/tab/tab_21.gif">
							&nbsp;
						</td>
						<td width="14">
							<img src="../system/images/tab/tab_22.gif" width="14" height="29" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</s:form>
